package com.example.springbootwebsocket.Controller;

import com.example.springbootwebsocket.DTO.NoticeWebsocketResp;
import com.example.springbootwebsocket.websocket.NoticeWebsocket;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @GetMapping("/test")
    public String test(){
        NoticeWebsocket.sendAll("你好，Websocket");

        return "success";
    }
}
